﻿SeadragonJSDebug = function() {
    /// <summary>STATIC CLASS</summary>
}

SeadragonJSDebug.log = function(msg, important) {
    /// <summary>If Seadragon.Config.debugMode is true, writes the given message to the browser's Javascript console. If the browser doesn't provide a Javascript console and the optional important parameter is true, alerts the message instead.</summary>
    /// <param name="msg" type="string">Message to write on log</param>
    /// <param name="important" type="Boolean">Wether important message or not. If true, an alert window is displayed.</param>
}

SeadragonJSDebug.error = function(msg, exception) {
    /// <summary>Writes the given message to the browser's Javascript console as an error message. If the browser doesn't provide a Javascript console, alerts the message if Seadragon.Config.debugMode is true. In either case, if Seadragon.Config.debugMode is true, provides fail-fast behavior by throwing an error to crash Seadragon. If an exception is given, the thrown error is the same exception, otherwise it is a new Error object with the given message.</summary>
    /// <param name="msg" type="string">Message to write on log</param>
    /// <param name="exception"></param>
}

SeadragonJSDebug.fail = function(msg) {
    /// <summary>Alerts to the user the Seadragon.Strings "Errors.Failure" message, and throws an error to crash Seadragon.</summary>
    /// <param name="msg" type="string">Message to display</param>
}
